﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YunShop_WebAPI.BLL.SxfPay
{
    public class WeChatPayQueryRequest
    {
        [DisplayName("商户订单号")]
        public string WIDout_trade_no { get; set; }

        [DisplayName("交易号")]
        public string WIDtrade_no { get; set; }

        [DisplayName("支付金额")]
        public string Amount { get; set; }

        public int CorpId { get; set; }
        public long StockId { get; set; }
        public string Random { get; set; }

        public string Actype { get; set; }
        public string Acid { get; set; }
        public string Uid { get; set; }
        public string Childid { get; set; }
        public string Flowno { get; set; }
        public string AddressId { get; set; }
        public bool CreateNew { get; set; }
        public string GoodsId { get; set; }
        public string RecType { get; set; }
        public string ProWXID { get; set; }

        public WeChatPayQueryType PayType { get; set; }
        public long MemberId { get; set; }
        public string Appid { get; set; }
        public string OpenId { get; set; }
    }

    public enum WeChatPayQueryType
    {
        /// <summary>
        /// 会员卡支付
        /// </summary>
        Member = 1,
        /// <summary>
        /// 公众号
        /// </summary>
        WxUnifiedOrder = 2,
        /// <summary>
        /// 小精灵
        /// </summary>
        Xjl = 3,
        /// <summary>
        /// 随心付
        /// </summary>
        SXF = 4
    }
}
